<template>
  <div class="about">
    <section class="hero">
      <div class="hero-content">
        <h1>{{ $t('about.title') }}</h1>
        <p>{{ $t('about.description') }}</p>
      </div>
    </section>

    <section class="company-intro">
      <div class="container">
        <div class="intro-content">
          <h2>公司简介</h2>
          <p>我们是一家专注于LED照明解决方案的高科技企业，致力于为客户提供高品质、节能环保的照明产品。</p>
          <p>公司拥有先进的生产设备和专业的研发团队，产品远销全球多个国家和地区。</p>
        </div>
        <div class="company-stats">
          <div class="stat-item">
            <h3>100+</h3>
            <p>专利证书</p>
          </div>
          <div class="stat-item">
            <h3>400+</h3>
            <p>员工人数</p>
          </div>
          <div class="stat-item">
            <h3>50+</h3>
            <p>销售国家</p>
          </div>
          <div class="stat-item">
            <h3>10000+</h3>
            <p>生产面积(㎡)</p>
          </div>
        </div>
      </div>
    </section>

    <section class="advantages">
      <div class="container">
        <h2>我们的优势</h2>
        <div class="advantage-grid">
          <div class="advantage-card">
            <el-icon><Lightning /></el-icon>
            <h3>技术创新</h3>
            <p>持续投入研发，保持技术领先</p>
          </div>
          <div class="advantage-card">
            <el-icon><Timer /></el-icon>
            <h3>品质保证</h3>
            <p>严格的质量控制体系</p>
          </div>
          <div class="advantage-card">
            <el-icon><Monitor /></el-icon>
            <h3>服务支持</h3>
            <p>专业的售前售后服务团队</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script setup lang="ts">
import { Lightning, Timer, Monitor } from '@element-plus/icons-vue'
</script>

<style scoped lang="scss">
.about {
  .hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('/images/about-bg.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;

    .hero-content {
      h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
      }

      p {
        font-size: 1.5rem;
        max-width: 800px;
        margin: 0 auto;
      }
    }
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }

  .company-intro {
    padding: 4rem 0;
    background-color: var(--bg-color);

    .intro-content {
      text-align: center;
      margin-bottom: 3rem;

      h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
      }

      p {
        margin-bottom: 1rem;
        line-height: 1.6;
      }
    }

    .company-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      text-align: center;

      .stat-item {
        h3 {
          font-size: 2.5rem;
          color: var(--primary-color);
          margin-bottom: 0.5rem;
        }

        p {
          color: var(--text-color-secondary);
        }
      }
    }
  }

  .advantages {
    padding: 4rem 0;

    h2 {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 3rem;
    }

    .advantage-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;

      .advantage-card {
        text-align: center;
        padding: 2rem;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s;

        &:hover {
          transform: translateY(-5px);
        }

        .el-icon {
          font-size: 3rem;
          color: var(--primary-color);
          margin-bottom: 1rem;
        }

        h3 {
          margin-bottom: 1rem;
        }
      }
    }
  }
}
</style> 